package cn.edu.cqvie.atc.hash.link;

/**
 * 链节点、相当于车厢🚗
 * @author Zheng Shaohong
 */
public class Node {

    //数据域
    public Info info;

    //指针域后一个节点
    public Node next;

    //指针域前一个节点
    public Node previous;

    public Node(Info info) {
        this.info = info;
    }

    public void display() {
        System.out.print(info.toString());
    }
}
